import service from '@/utils/request'

// @Tags ConstantInfo
// @Summary 创建ConstantInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ConstantInfo true "创建ConstantInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /constantInfo/createConstantInfo [post]
export const createConstantInfo = (data) => {
  return service({
    url: '/constantInfo/createConstantInfo',
    method: 'post',
    data
  })
}

// @Tags ConstantInfo
// @Summary 删除ConstantInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ConstantInfo true "删除ConstantInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /constantInfo/deleteConstantInfo [delete]
export const deleteConstantInfo = (data) => {
  return service({
    url: '/constantInfo/deleteConstantInfo',
    method: 'delete',
    data
  })
}

// @Tags ConstantInfo
// @Summary 删除ConstantInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除ConstantInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /constantInfo/deleteConstantInfo [delete]
export const deleteConstantInfoByIds = (data) => {
  return service({
    url: '/constantInfo/deleteConstantInfoByIds',
    method: 'delete',
    data
  })
}

// @Tags ConstantInfo
// @Summary 更新ConstantInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ConstantInfo true "更新ConstantInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /constantInfo/updateConstantInfo [put]
export const updateConstantInfo = (data) => {
  return service({
    url: '/constantInfo/updateConstantInfo',
    method: 'put',
    data
  })
}

// @Tags ConstantInfo
// @Summary 用id查询ConstantInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ConstantInfo true "用id查询ConstantInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /constantInfo/findConstantInfo [get]
export const findConstantInfo = (params) => {
  return service({
    url: '/constantInfo/findConstantInfo',
    method: 'get',
    params
  })
}

// @Tags ConstantInfo
// @Summary 分页获取ConstantInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取ConstantInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /constantInfo/getConstantInfoList [get]
export const getConstantInfoList = (params) => {
  return service({
    url: '/constantInfo/getConstantInfoList',
    method: 'get',
    params
  })
}
